package com.migu.spms.dao.inf;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.migu.spms.dao.entity.RequireTypeTreeCriteria;
import com.migu.spms.dao.entity.RequireTypeTreeDO;

/**   
* IRequireTypeTreeDO类
* 项目名称:  SPMS功能需求
* 包名称:    com.migu.spms.dao.inf   
* 类名称:    IRequireTypeTreeDO.java
* 类描述:    
* 创建人:    wcr   
* 创建时间:  2017年6月21日 下午3:37:12   
*/
@Repository(value="IRequireTypeTreeDO")
public interface IRequireTypeTreeDO {
    int deleteByPrimaryKey(Long id);

    int insert(RequireTypeTreeDO record);

    int insertSelective(RequireTypeTreeCriteria record);

    RequireTypeTreeDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RequireTypeTreeCriteria record);

    int updateByPrimaryKey(RequireTypeTreeCriteria record);
    
    List<RequireTypeTreeDO> selectRequireTypeTreeList(RequireTypeTreeCriteria record);
    
    RequireTypeTreeDO selectRequireTypeTree(RequireTypeTreeCriteria record);
    
    /**
    * 根据ID查询所有子节点ID
    * @param pid
    * @return
    * @exception
    * @throws
    */
    String getTypeTreeList(String pid);
}